package cn.xinfei.xdecision.common.dao.enginex;

import cn.xinfei.xdecision.common.model.component.dependency.resp.DecisionComponentDependencyResp;
import cn.xinfei.xdecision.common.model.enginex.po.EngineNode;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EngineNodeMapper extends BaseMapper<EngineNode> {

    List<EngineNode> getNodeListByVersionId(@Param("versionId") Long versionId);

    List<DecisionComponentDependencyResp> getByEngineCodes(List<Long> versionIds);

    Integer getMaxNodeOrder(Long versionId);

    Integer updateEngineNode(@Param("engineNode") EngineNode engineNode, @Param("condition") EngineNode condition);
}